package cn.jhg.account.rest;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import cn.jhg.account.aspect.LogDefine;
import cn.jhg.account.entity.ParamValue;
import cn.jhg.account.service.PVSvc;
import cn.jhg.account.util.JsonUtil;
import cn.jhg.account.util.ServiceResult;

@Component
public class PVRestImpl implements PVRest {

	@Resource
	private PVSvc pvSvc;
	
	@Override
	@LogDefine(value="rest.findPVs")
	public String findPVs(String param_name) {
		ServiceResult<List<ParamValue>> result = pvSvc.findPVs(param_name);
		
		return JsonUtil.packaging(result);
	}

}
